<?php
class DefaultController extends BaseController
{

	public function actionIndex(){
		$this->uid = obj('User')->is_login();//TODO:后期转为js 减少服务端的压力
		
		$this->vols = obj('Vol')->select('','id,title','id desc',10);
		$this->tis = obj('Ti')->select('','id,ti','id desc',10);
		$this->display('default_index.tpl');
	}
	
	public function actionTest(){
	
	
		$this->display('default_test.tpl');
		//echo url('aaa');
	
		// $Test = obj('Test');
		//测试创建表
		
	}
	
}